package com.itheima.test10;

/**
 * @Author:gy
 * @Date: 2025/09/06 17:17
 * @Description:
 */
public class Demo1 {
    public static void main(String[] args) {
      /*  //普通的老王飞饼
        LaoWangFeibing laoWangFeibing = new LaoWangFeibing();
        laoWangFeibing.desc();
        laoWangFeibing.price();
       // EggDesc eggDesc = new EggDesc(new LaoWangFeibing());
        LijiDesc lijiDesc = new LijiDesc(new EggDesc(new LaoWangFeibing()));
        System.out.println(lijiDesc.desc());
        System.out.println(lijiDesc.price());*/
       // EggDesc eggDesc = new EggDesc(new JIangXiangBing());
       /* EggDesc eggDesc = new EggDesc(new LijiDesc(new JIangXiangBing()));
        System.out.println(eggDesc.desc());
        System.out.println(eggDesc.price());*/
        EggDesc eggDesc = new EggDesc(new LijiDesc(new YingDuFeiBing()));
        System.out.println(eggDesc.desc());
        System.out.println(eggDesc.price());
    }
}
